40ef1f5a101cf933681015c76c14727fdd348135,src/main/java/crawlercommons/sitemaps/SiteMapParser.java,SiteMapParser,parseAtom,#SiteMap#Element#Document#,397
Before Change
if (valid || !strict) {
SiteMapURL sUrl = new SiteMapURL(url.toString(), lastMod, null, null, valid);
sitemap.addSiteMapUrl(sUrl);
LOG.debug(" " + (i + 1) + ". " + sUrl);
}
} catch (MalformedURLException e) {
// Can't create an entry with a bad URL
After Change
boolean valid = urlIsLegal(sitemap.getBaseUrl(), url.toString());
if (valid || !strict) {
SiteMapURL sUrl = new SiteMapURL(url.toString(), lastMod, null, null, valid);
sitemap.addSiteMapUrl(sUrl);
if (LOG.isDebugEnabled()){
StringBuffer sb = new StringBuffer(" ");
sb.append(i + 1).append(". ").append(sUrl);
LOG.debug(sb.toString());
}
}
} catch (MalformedURLException e) {